﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Users;

namespace TestUnitTest.Base.Security
{
    [Dependency(ReplaceServices = true)]
    public class TianShuCurrentTenantAccessor :ICurrentTenantAccessor, ISingletonDependency
    {
        private readonly ICurrentUser _currentUser;
        public TianShuCurrentTenantAccessor(ICurrentUser _currentUser) : base()
        {
            Current = new BasicTenantInfo(_currentUser.TenantId);
        }

        public BasicTenantInfo Current
        {
            get;
            set ;
        }

    }
}
